package com.ldw.common;


public enum ErrorCode {

    PARAMS_ERROR(1001, "参数有误"),
    ACCOUT_PAD_NOT_EXIST(1002, "用户名或密码不存在"),
    NO_PERMISSION(1003, "无访问权限"),
    SESSION_TIME_OUT(1004, "会话过期"),
    NO_LOGIN(1005, "未登录"),
    TOKEN_ERROR(1006, "token不合法"),
    ACCOUT_EXIST(1007, "账户已经存在");

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    private int code;
    private String msg;

    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
